// mod demo_lib;

#[no_mangle]
fn calculate(add: bool, left: i32, right: i32) -> i32 {
    if add {
        left + right
    } else {
        left * right
    }
}

fn main() {
    // println!("generate random number: {}", demo_lib::generate_random_number());
    let result = calculate(true , 1, 2);
    println!("1 + 2 = {}", result);
}
